package com.daxidi.cn.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author JiaLin
 * create 2020-11-13
 */
@Data
@ApiModel("会员订单查询Vo")
public class MemberBillVo {

    @ApiModelProperty("会员编号")
    private Long membeId;

    @ApiModelProperty("订单号")
    private Long orderId;

    @ApiModelProperty("商家信息")
    private String shopName;

    @ApiModelProperty("原价")
    private Double total;

    @ApiModelProperty("折扣")
    private Double discount;

    @ApiModelProperty("为您节省")
    private Double free;

    @ApiModelProperty("创建时间")
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @ApiModelProperty("支付金额")
    private Double discounted;

}
